<?php

declare(strict_types=1);

namespace App\Mall\Model;

use App\Fastapp\Model\FileTrait;
use Hyperf\Database\Model\SoftDeletes;
use Mine\MineModel;

/**
 * @property int $id 主键
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 * @property string $deleted_at 
 * @property int $created_by 创建者
 * @property int $updated_by 更新者
 * @property string $logo logo
 * @property array $name 名称
 * @property array $content 介绍
 * @property int $admin_id 
 */
class MallShop extends MineModel
{
    use SoftDeletes, FileTrait;
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'mall_shop';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'created_at', 'updated_at', 'deleted_at', 'created_by', 'updated_by', 'logo', 'name', 'content', 'admin_id'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'created_by' => 'integer', 'updated_by' => 'integer', 'name' => 'array', 'content' => 'array', 'admin_id' => 'integer'];
}
